package com.zhongkai.controller;

import com.zhongkai.app.service.PropertySetService;
import com.zhongkai.model.utils.ZhongkaiResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class PropertySetController {

    @Autowired
    private PropertySetService propertySetService;



    @RequestMapping(value = "/pro_con/list", produces = "application/json;charset=utf-8")
    @ResponseBody
    public ZhongkaiResult listRecord(@RequestParam(defaultValue = "0")Integer page, @RequestParam(defaultValue = "0")Integer rows) {

        ZhongkaiResult result = propertySetService.getProList(page,rows);

        return result;
    }
}
